package org.axed.user.client.impl;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.Label;
import org.axed.user.client.AxedArea;

/**
 * 
 */
public class CursesElementImplIE extends CursesElementImpl {
	/**
	 * Workaround stupid IE bug.
	 */
	public int fixCoords(int t, String types, int e, int h, int l) {
		if (l != AxedArea.borderLeft) {
			return t;
		}
		if (e == 0) {
			return t;
		}
		for (int i = e - 1; i >= 0; i--) {
			if (types.charAt(i) == 'c') {
				return t + h;
			}
		}
		return t;
	}
}
